package cn.itcast.service;

import cn.itcast.entity.OrderQueryPageBean;
import cn.itcast.entity.PageResult;
import cn.itcast.pojo.Order;
import cn.itcast.entity.Result;
import java.util.List;
import java.util.Map;
public interface OrderService {
    PageResult findPage(OrderQueryPageBean orderQueryPageBean);

    boolean submitOrder(Order order);

    boolean saveOrder(Order order);

    Order findOrderById(String id);

    boolean updateArrival(String id,Integer arrival);

    List<Integer> findOrderCountByMonths(List<String> months);


    /*
    * 校验预约短信验证码
    * */
    Boolean checkCode(String phone, String validateCode );
    
    /*
    * 保存预约信息
    * */
    Result saveOrder(Map map) throws Exception;

    /*
    * 预约信息
    * */
    Order findById(String id);
}

